#ifndef END_UTIL_H
#define END_UTIL_H

#include "stdint.h"

/**
 * Convert a 16-bit value from host byte order to network byte order.
 * @param value the value in network byte order to convert
 * @return the converted value in host byte order
 */
uint16_t hbo2nbo16(uint16_t value);

/**
 * Convert a 16-bit value from network byte order to host byte order
 * @param value the value in host byte order to convert
 * @return the converted value in network byte order
 */
uint16_t nbo2hbo16(uint16_t value);

/**
 * Convert a 32-bit value from host byte order to network byte order.
 * @param value the value in network byte order to convert
 * @return the converted value in host byte order
 */
uint32_t hbo2nbo32(uint32_t value);

/**
 * Convert a 32-bit value from network byte order to host byte order
 * @param value the value in host byte order to convert
 * @return the converted value in network byte order
 */
uint32_t nbo2hbo32(uint32_t value);

#endif
